import request from '@/utils/request'
//获取房源信息
export const getAreaMap = id => {
  return request.get('/area/map', { params: { id } })
}

//获取城市列表
export const getCityList = level => {
  return request.get('/area/city', { params: { level } })
}

//获取热门城市信息
export const getHotCity = () => {
  return request.get('/area/hot')
}
//获取子级城市列表
export const getArea = id => {
  return request.get('/area', { params: { id } })
}
//获取房屋查询条件
export const getHouseCondition = id => {
  return request.get('/houses/condition', { params: { id } })
}
//小区关键词查询
export const getAreaCommunity = (name, id) => {
  return request.get('/area/community', { params: { name, id } })
}
